package com.sgb.kjwl.view.ui.adapter.material;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.sgb.kjwl.R;
import com.sgb.kjwl.model.entity.Bean;

import java.util.List;

/**
 * 作者:张磊
 * 日期:2021/4/5 0008
 * 说明:财务流水
 */
public class FinanceFlowItemAdapter extends BaseQuickAdapter<Bean, BaseViewHolder> {
    public FinanceFlowItemAdapter(List<Bean> beans) {
        super(R.layout.financeflowitem_adapter, beans);
    }

    @Override
    protected void convert(BaseViewHolder helper, final Bean item) {
        helper.setText(R.id.tv_name, item.name);
        helper.getView(R.id.img).setRotation(item.select ? 180 : 0);
    }
}